'use strict';
var development = require('./development');//开发环境
var production = require('./production');//生产环境
var envConfigList = [development,production];
var node_env = process.env.NODE_ENV;
var config = (function () {
    for(var envConfig of envConfigList){
        if(envConfig.env === node_env){
            return envConfig
        }
    }
    //不存在环境配置，默认是测试环境
    return development;
})(process.env.NODE_ENV);
module.exports=config;
